package StudyCode.summary.zipfile;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertStringToInputStream {
	public static void main(String args[]) {
		String str1 = "www.tah1986.com";

		byte[] bytes = str1.getBytes();
		InputStream inputStream = new ByteArrayInputStream(bytes);
		System.out.println("将字符串(String)转换为 InputStream :" + inputStream);
	}
}
